   <style type="text/css">
      .container{
        margin:0;
        padding:0;
      }
      .chargemain {
        width:100%;
      }
      
      .col-xs-12:nth-child(2) ul li:first-child{
        margin-bottom:15px;
      }
      .col-xs-12:nth-child(2) ul{
        margin:0;
        padding:0;
        background:#161729;
      }
      .col-xs-12:nth-child(2) ul li{
        border:0!important;
      }
      ul,.my-cash-container{
        padding:6px 30px;
        background:#32363F;
      }
      ul>li,.my-cash-container>div{
        border:1px solid #53565D!important;
        padding:0 14px;
        border-radius:6px;
        font-size:15px;
        color:#fff;
      }
      ul>li font{
        color:#fff;
      }
      .col-xs-12.pad_none.notic{
        margin-left: 48px;
        width: 79%;
        margin-top: 22px;
        margin-bottom:24px;
      }
      .col-xs-12.pad_none.notic p{
        position: relative;
        font-size: 12px;
        color: #808ba3;
      }
      .col-xs-12.pad_none.notic p span{
        position: absolute;
        left: -9px;
        margin-top: 4px;
      }
      .choice-tip font{
          font-size:12px!important;
          border:0!important;
      }
      .header a {
        left: 25px;
      }
      .chargebtn{
        width: 79%;
        margin: 0 auto;
        height:44px;
        line-height: 29px;
      }
   </style>
   <div class="container">
     <div class="row">
       <div style="height:50px;line-height:50px;" class="header">
         <a href="<?= url('user/index')?>" > <i class="iconfont">&#xf0292;</i></a>
         提现
       </div>
       
       <div class="chargemain tx">
        <?php $form = self::beginForm(['showLabel' => false]) ?>
        <div class="col-xs-12 charge">
               <ul>
                    <li style='line-height: 32px;'>
                      
                      <p class="choice-tip"><font>可提取余额</font><span><?= u()->account - u()->blocked_account ?></span></p>
                    </li>
                    <li class="my-cash-container">
                      <div>
                        <font>本次提取金额</font><?= $form->field($userWithdraw, 'amount')->textInput(['placeholder' => '请输入提取金额']) ?>
                      </div>
                    </li>
               </ul>
        </div>
        <div class="col-xs-12 charge">
            <ul>
                <li><font>开户银行</font><?= $form->field($userAccount, 'bank_name')->dropDownlist() ?></li>
            </ul>
        </div>
        <div class="col-xs-12 charge">
            <ul>
                <li><font>银行卡号</font><?= $form->field($userAccount, 'bank_card')->textInput(['placeholder' => '请输入银行卡号']) ?></li>
            </ul>
        </div>
        <div class="col-xs-12 charge">
            <ul>
                <li><font>姓名</font><?= $form->field($userAccount, 'bank_user')->textInput(['placeholder' => '请输入持卡人姓名']) ?></li>
            </ul>
        </div>
        <div class="col-xs-12 charge">
            <ul>
                <li><font>交易密码</font><?= $form->field($model, 'withdrawPassword')->passwordInput(['placeholder' => '请输入交易密码']) ?></li>
            </ul>
        </div>
        <div class="col-xs-12 charge">
            <ul>
                <li><font>开户行地址</font><?= $form->field($userAccount, 'bank_address')->textInput(['placeholder' => '请输入开户行地址', 'class' => 'address']) ?></li>
                <font color="red" size="2px">开户行地址填写格式为：XX银行XX省XX市XX支行</font>
            </ul>
        </div>

        <div class="col-xs-12 pad_none notic">
          <p>
                <span>*</span>出金时间周一至周五早上10点到下午4点<br/>
                <span>*</span>周六周日可提交申请<br/>
                <span>*</span>周一出金系统会自动处理<br/>
          </p>
         </div>     
        <div class="col-xs-12 pad_none"><a class="chargebtn">提交</a></div>
        <?php self::endForm() ?>
           
       </div>  
     </div>
   </div>


<script>
$(function () {
    $(".chargebtn").click(function () {
        $("form").ajaxSubmit($.config('ajaxSubmit', {
            success: function (msg) {
                if (!msg.state) {
                    $.alert(msg.info);
                } else {
                    $.alert(msg.info);
                    window.location.href = '<?= url('user/index') ?>'
                }
            }
        }));
        return false;
    });
    // 验证码
    $("#verifyCodeBtn").click(function () {
        var url = $(this).data('action');
        $.post(url, {mobile: '<?= u()->mobile ?>'}, function(msg) {
                $.alert(msg.info);
        }, 'json');
    });
});
</script>


